<!DOCTYPE html>
<html>
	<head>
    	<meta charset="utf-8" />
        <title>Test Admin</title> 
        <base href="<{$B_Url}>" />
		<link type="text/css" rel="stylesheet" href="<{$APP_CSS_Url}>page.css" /> 
		<link type="text/css" rel="stylesheet" href="<{$APP_CSS_Url}>jquery_dialog.css" /> 
		<script type="text/javascript" src="<{$JS_Url}>jquery.min.js"></script>    
		<script language="javascript" src="<{$APP_JS_Url}>jquery_dialog.js"></script>
		<script language="javascript" src="<{$APP_JS_Url}>xheditor/xheditor-1.2.1.min.js"></script>
		<script type="text/javascript" src="<{$APP_JS_Url}>xheditor/xheditor_lang/zh-cn.js"></script>
		<script type="text/javascript" src="<{$APP_JS_Url}>laydate/laydate.js"></script>
		<script type="text/javascript" src="<{$APP_JS_Url}>jquery.uploadify.min.js" ></script>
		<link rel="stylesheet" type="text/css" href="<{$APP_JS_Url}>uploadify.css"> 
    </head>
    <body>
    	<div class="toolbar">
        	<table> 
            	<tr> 
                    <td><input type="button" class="btn btn120 btn_select" value="保存数据" /></td>
                    <td><input type="button" class="btn btn120 btn_selectno" value="取消保存" /></td>
                </tr> 
            </table>
        </div>
    	<div class="m10">
		    <table class="formtable" cellpadding="0" cellspacing="0" border="0" >
		        <tr>
		        	<th>国家</th> 
		        	<td><label class="lab"><input type="checkbox" class="chk" />中国</label><label class="lab"><input type="checkbox" class="chk" />韩国</label></td> 
		            <th>分类</th>
		            <td>全新</td>
		        </tr>  
		        <tr>
		            <th>文章标题</th> 
		            <td colspan="3"><input type="text" class="edit" style="width: 90%" /></td> 
		        </tr> 
		        <tr>
		            <th>上传文件</th> 
		            <td colspan="3">
		            	<input type="file" class="file" />
		            </td>  
		        </tr> 	
		        <tr>
		            <th>内容简介</th> 
		            <td colspan="3">
		            	<textarea style="height: 80px; width:90%;" class="edit"></textarea>
		            </td>  
		        </tr> 
		        <tr>
		            <th>分类</th> 
		            <td><select class="select">
		            	<option value="0">==所有==</option>
		            	<option value="1">中国</option>
		            	<option value="2">韩国</option>
		            	<option value="3">意大利</option>
		            </select></td>
		            <th>类型</th> 
		            <td>
		            	<label class="lab"><input type="radio" name="ty" class="rad" checked />国产</label>
		            	<label class="lab"><input type="radio" name="ty" class="rad" />进口</label>
		            </td> 
		        </tr> 
		        <tr>
		            <th>文章内容</th> 
		            <td colspan="3">
		            	<textarea id="content" style="height: 120px; width:90%;"></textarea>
		            </td>  
		        </tr> 
		        <tr>
		            <th>相册图片</th> 
		            <td colspan="3">
		            	<input id="file_upload" type="file" />
		            </td>  
		        </tr> 	
		        <tr> 
		            <th>发布日期</th> 
		            <td colspan="3"><input type="text" class="edit laydate-icon" onclick="laydate()" /></td> 
		        </tr> 				
		    </table> 
		</div>
    	<div class="toolbar">
        	<table> 
            	<tr> 
                    <td><input type="button" class="btn btn120 btn_select" value="保存数据" /></td>
                    <td><input type="button" class="btn btn120 btn_selectno" value="取消保存" /></td>
                </tr> 
            </table>
        </div>

    </body>
</html>
<script language="javascript">
$(function(){
	$('#content').xheditor(); 
	
	$('#file_upload').uploadify({
		'formData'     : { 'timestamp' : Math.random(), 'token'     : Math.random()*Math.random() },
		'swf'      : '<{$APP_JS_Url}>uploadify.swf',
		'uploader' : 'uploadify',
		'buttonText' : '选择文件',
		'onQueueComplete':function(file){ console.log(file); },
		'onUploadSuccess':function(file, data, response){ console.log(data); }
	});
	$('#file_upload').height(20);
});
</script>